<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>js templage</title>
		<script type="text/javascript" src="../../js/jquery-1.11.2.min.js" ></script>
	</head>
	<body>
		<div id="content"></div>
		<input type="button" value="增加template" onclick="add()" />
		<script type="text/template" id="template">
			<div>这是template中的内容</div>
		</script>
		<script>
			function add() {
				var inner = $("#template").html();
				$("#content").append(inner);
			}
			
		</script>
	</body>
</html>
